package utils;

/**
 * @ProjectName: wlgzs-blog
 * @Package: org.wlgzs.website.wlgzsblog.util
 * @ClassName: CollectionUtils
 * @Description: java类作用描述
 * @Author: alj
 * @CreateDate: 2018/8/16 17:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2018/8/16 17:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
import java.util.Collection;

/**
 * <p>
 * Collection工具类
 * </p>
 *
 * @author Caratacus
 * @Date 2016-09-19
 */
public class CollectionUtils {

    /**
     * <p>
     * 校验集合是否为空
     * </p>
     *
     * @param coll
     * @return boolean
     */
    public static boolean isEmpty(Collection<?> coll) {
        return (coll == null || coll.isEmpty());
    }

    /**
     * <p>
     * 校验集合是否不为空
     * </p>
     *
     * @param coll
     * @return boolean
     */
    public static boolean isNotEmpty(Collection<?> coll) {
        return !isEmpty(coll);
    }

}
